package spring.aop.case1;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.BlockJUnit4ClassRunner;
import spring.UnitTestBase;
import spring.aop.case1.service.Fit;


@RunWith(BlockJUnit4ClassRunner.class)
public class TestAOPSchemaActive extends UnitTestBase {
    public TestAOPSchemaActive() {
        super("classpath:spring-aop-schema-advice.xml");
    }

    @Test
    public void testBiz() {
        AspectBiz biz = super.getBean("aspectBiz");
        biz.biz();

    }

    @Test
    public void testInit() {
        AspectBiz biz = super.getBean("aspectBiz");
        biz.init("test for aoparound", 4);
    }

    @Test
    public void testFit() {
        Fit fit = (Fit) super.getBean("aspectBiz");
        fit.filter();
    }
}
